home *** CD-ROM | disk | FTP | other *** search
/ Aminet 3 / Aminet 3 - July 1994.iso / Aminet / disk / misc / mirror.lha / MIRROR.README < prev    next >
Encoding:
Text File  |  1993-12-13  |  2.2 KB  |  80 lines

  1. MIRROR - A DOS utility
  2.  
  3.  
  4. This program was written by Rick van Rein on an Amiga 500 under OS 2.0.
  5. There should be no problems in running on other configs, like OS 1.3.
  6.  
  7. Copyright notice
  8.  
  9.     It is not allowed to use this program or things deducted from it
  10.     for earning any money at all. (Cannot make it any shorter)
  11.     It is allowed to spread this program on a non-profit bases.
  12.     Of course, this text and the sourcefile should go with it unchanged.
  13.  
  14. What does it do?
  15.  
  16.     MIRROR is useful when you have to swap between two (hard)disks with
  17.     equal structure over and over again. In my case, this is true
  18.     because I have a partition for programs and another for data on my
  19.     harddisk. These principally have the same directory structure.
  20.     As I use long paths, I had to type a lot to change between program
  21.     and data directory of the same application. This is exactly what
  22.     MIRROR does for me.
  23.  
  24. Example please?
  25.  
  26.         dh0:Prog/C/CC> Mirror dh0: dh1:
  27.                   CD ""
  28.         dh1:Prog/C/CC> _
  29.  
  30. What if destination dir doesn't exist?
  31.  
  32.     Two possible modes of MIRROR exist to respond to this problem.
  33.     In PASSIVE mode (the default), no directories are created, and MIRROR
  34.     tries to match from the root directory on as far as it can:
  35.  
  36.         dh0:Prog/C/CC/BIN/MINE/YESTERDAY> Mirror dh0: dh1:
  37.                      CD ""
  38.         MIRROR cannot exactly match the directories
  39.         dh1:Prog/C/CC> _
  40.  
  41.     The other mode of operation is CREATIVE mode, switched on by adding a
  42.     third word CREATE on the command line:
  43.  
  44.         dh0:Prog/C/CC/BIN/MINE/YESTERDAY> Mirror dh0: dh1: CREATE
  45.                      CD ""
  46.         dh1:Prog/C/CC/BIN/MINE/YESTERDAY> _
  47.  
  48.     Here, the "BIN/MINE/YESTERDAY" extension to the path on dh1: was made
  49.     using the CREATIVE mode. Note that it is no problem to create more than
  50.     one level, unlike MakeDir.
  51.  
  52. Still a lot of work!
  53.  
  54.     Of course you have a pretty static setup of two equally structured
  55.     disks, so you can write a script named "Mirror", like the one that
  56.     goes with this package. Then all you'll have to do is:
  57.  
  58.         dh0:Prog/C/CC/BIN/MINE/YESTERDAY> Mirror
  59.         dh1:Prog/C/CC/BIN/MINE/YESTERDAY> _
  60.  
  61.     This does for you the following:
  62.  
  63.         cd dh1:
  64.         cd Prog
  65.         cd C
  66.         cd CC
  67.         MakeDir BIN
  68.         cd BIN
  69.         MakeDir MINE
  70.         cd MINE
  71.         MakeDir YESTERDAY
  72.         cd YESTERDAY
  73.  
  74.     Now, isn't that sweet?
  75.  
  76.         Have fun with it!
  77.             Rick van Rein.
  78.  
  79.     Internet: vanrein@cs.utwente.nl
  80.